(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([ [ 204 ], {
    459: function(e, t, a) {},
    460: function(e, t, a) {},
    461: function(e, t, a) {},
    462: function(e, t, a) {},
    463: function(e, t, a) {},
    464: function(e, t, a) {},
    687: function(e, t, a) {
        "use strict";
        a.r(t);
        var s, n, c = a(18), r = a(43), i = a(6), o = a.n(i), l = a(12), h = a(14), u = a(15), m = a(5), j = a(23), b = a(24), d = a(4), g = a(22), p = a(1), x = a(9), O = a(3), f = a(2), w = a.n(f), N = a(39), T = a(56), v = a(70), k = a(32), V = a(64), y = a(63), P = a(16), I = a(8), S = (a(459), 
        a(29)), U = a.n(S), L = a(27), C = a(37), q = (a(460), a(42)), M = a(0), E = function() {
            return Object(M["jsxs"])(p["View"], {
                className: "wm-tips",
                children: [ Object(M["jsx"])(p["View"], {
                    className: "h3",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "注意事项："
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "1.无论饿了么新老用户，每个手机号每天均可领一次，红包金额随机发放；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "2.饿了么绑定的手机号，需与领券登录的手机号一致；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "3.下单后30分钟内会有订单提醒；"
                    })
                }) ]
            });
        }, H = function() {
            var e = Object(x["d"])(function(e) {
                return e.share;
            }), t = e.agentId;
            return t ? Object(M["jsx"])(E, {}) : Object(M["jsx"])(q["a"], {
                children: Object(M["jsx"])(E, {})
            });
        }, D = function(e) {
            var t = e.user, a = e.share;
            return {
                user: t,
                share: a
            };
        }, z = function() {
            return {};
        }, A = (s = Object(x["b"])(D, z), s(n = function(e) {
            Object(j["a"])(a, e);
            var t = Object(b["a"])(a);
            function a(e) {
                return Object(h["a"])(this, a), t.call(this, e);
            }
            return Object(u["a"])(a, [ {
                key: "render",
                value: function() {
                    var e = this, t = this.props.share.agentId, a = this.props.qrcodeUrl, s = this.props.user, n = s.isMpUser, c = s.approved, r = this.props.user.agent.selfOrderConfirmNum;
                    return Object(M["jsxs"])(p["View"], {
                        className: "ele-guoshu",
                        children: [ n || r || c || t ? Object(M["jsx"])(C["a"], {
                            home: !0,
                            color: "#ffffff",
                            iconTheme: "white",
                            background: "#10c495",
                            onHome: L["a"].openHome,
                            renderCenter: Object(M["jsxs"])(p["View"], {
                                className: "nav-bar-tabs",
                                children: [ Object(M["jsx"])(p["View"], {
                                    className: "item",
                                    onClick: function() {
                                        return e.props.onToggle("waimai");
                                    },
                                    children: Object(M["jsx"])(p["Text"], {
                                        className: "title",
                                        children: "外卖"
                                    })
                                }), Object(M["jsx"])(p["View"], {
                                    className: "item active",
                                    children: Object(M["jsx"])(p["Text"], {
                                        className: "title",
                                        children: "果蔬"
                                    })
                                }) ]
                            })
                        }) : Object(M["jsx"])(C["a"], {
                            home: !0,
                            color: "#ffffff",
                            iconTheme: "white",
                            background: "#10c495",
                            onHome: L["a"].openHome
                        }), Object(M["jsx"])(p["View"], {
                            className: "wm-banner",
                            children: n || r || c || t ? Object(M["jsx"])(p["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/banner-ele-market-210607.jpg"
                            }) : null
                        }), Object(M["jsxs"])(p["View"], {
                            className: "wm-coupon",
                            children: [ n || r || c || t ? Object(M["jsxs"])(p["View"], {
                                className: "header",
                                children: [ Object(M["jsxs"])(p["View"], {
                                    className: "step",
                                    children: [ Object(M["jsx"])(p["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/gs-3.png"
                                    }), Object(M["jsx"])(p["Text"], {
                                        className: "span",
                                        children: "先领券"
                                    }) ]
                                }), Object(M["jsx"])(p["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/gs-4.png"
                                }), Object(M["jsxs"])(p["View"], {
                                    className: "step",
                                    children: [ Object(M["jsx"])(p["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/gs-2.png"
                                    }), Object(M["jsx"])(p["Text"], {
                                        className: "span",
                                        children: "再下单"
                                    }) ]
                                }), Object(M["jsx"])(p["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/gs-4.png"
                                }), Object(M["jsxs"])(p["View"], {
                                    className: "step",
                                    children: [ Object(M["jsx"])(p["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "http://cdn.meizhuan.cn/pic-go/save-eleme-market-210607.png"
                                    }), Object(M["jsx"])(p["Text"], {
                                        className: "span",
                                        children: "享优惠"
                                    }) ]
                                }) ]
                            }) : Object(M["jsxs"])(p["View"], {
                                className: "header",
                                children: [ Object(M["jsxs"])(p["View"], {
                                    className: "step",
                                    children: [ Object(M["jsx"])(p["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/gs-1.png"
                                    }), Object(M["jsx"])(p["Text"], {
                                        className: "span",
                                        children: "先领券"
                                    }) ]
                                }), Object(M["jsx"])(p["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/gs-4.png"
                                }), Object(M["jsxs"])(p["View"], {
                                    className: "step",
                                    children: [ Object(M["jsx"])(p["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/gs-2.png"
                                    }), Object(M["jsx"])(p["Text"], {
                                        className: "span",
                                        children: "再下单"
                                    }) ]
                                }) ]
                            }), Object(M["jsxs"])(p["View"], {
                                className: "content",
                                children: [ Object(M["jsx"])(p["Image"], {
                                    mode: "widthFix",
                                    showMenuByLongpress: !0,
                                    className: "qrcode",
                                    src: a || "https://mpstatic.qingting123.com/img/loading-max.gif"
                                }), n || r || c || t ? Object(M["jsx"])(p["View"], {
                                    className: "btn-wrapper",
                                    children: Object(M["jsxs"])(p["View"], {
                                        className: "btn",
                                        onClick: function() {
                                            return e.props.onHongbao();
                                        },
                                        children: [ Object(M["jsx"])(p["Text"], {
                                            className: "label",
                                            children: "领红包买果蔬"
                                        }), Object(M["jsx"])(p["View"], {
                                            className: "tag",
                                            children: "1小时送达"
                                        }) ]
                                    })
                                }) : null ]
                            }) ]
                        }), a ? Object(M["jsxs"])(p["View"], {
                            className: "wm-btns",
                            children: [ Object(M["jsx"])(p["View"], {
                                className: "btn left",
                                onClick: this.props.onShare,
                                children: "分享好友"
                            }), Object(M["jsx"])(p["View"], {
                                className: "btn right",
                                onClick: this.props.onCopy,
                                children: "复制文案"
                            }) ]
                        }) : null, Object(M["jsx"])(H, {}) ]
                    });
                }
            } ]), a;
        }(O["Component"])) || n);
        A.defaultProps = {
            qrcodeUrl: "",
            onToggle: function() {},
            onHongbao: function() {},
            onShare: function() {},
            onCopy: function() {}
        }, A.propType = {
            qrcodeUrl: U.a.string,
            onToggle: U.a.func,
            onHongbao: U.a.func,
            onShare: U.a.func,
            onCopy: U.a.func
        };
        var F, B, R = A, K = (a(461), function() {
            var e = Object(x["d"])(function(e) {
                return e.weapp.mp;
            }), t = e.eleRedReward;
            return t ? Object(M["jsxs"])(p["View"], {
                className: "wm-tips",
                children: [ Object(M["jsx"])(p["View"], {
                    className: "h3",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "注意事项："
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "1.外卖红包、赏金红包和幸运红包不冲突，可以同时领取，哪个红包大用哪个；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "2.无论饿了么新老用户，外卖红包、赏金红包和幸运红包每个手机号每天领取使用后可以再次领取，红包金额随机发放；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "3.饿了么绑定的手机号，需与领券登录的手机号一致；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "4.下单后30分钟内会有订单提醒；"
                    })
                }) ]
            }) : Object(M["jsxs"])(p["View"], {
                className: "wm-tips",
                children: [ Object(M["jsx"])(p["View"], {
                    className: "h3",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "注意事项："
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "1.外卖红包和外卖红包②不冲突，可以同时领取，哪个红包大用哪个；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "2.无论饿了么新老用户，外卖红包和外卖红包②每个手机号每天领取使用后可以再次领取，红包金额随机发放；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "3.饿了么绑定的手机号，需与领券登录的手机号一致；"
                    })
                }), Object(M["jsx"])(p["View"], {
                    className: "p",
                    children: Object(M["jsx"])(p["Text"], {
                        children: "4.下单后30分钟内会有订单提醒；"
                    })
                }) ]
            });
        }), G = function() {
            var e = Object(x["d"])(function(e) {
                return e.share;
            }), t = e.agentId;
            return t ? Object(M["jsx"])(K, {}) : Object(M["jsx"])(q["a"], {
                children: Object(M["jsx"])(K, {})
            });
        }, _ = (a(462), function(e) {
            Object(f["showLoading"])({
                title: "加载中",
                mask: !0
            }), I["G"].fetchWithMp({
                goodsTbId: 1
            }).then(function(e) {
                return e.data;
            }).then(function(e) {
                if ("0" !== e.code) {
                    var t = "AgentAction.fetchWithMp: ".concat(e.msg);
                    throw Object(f["showToast"])({
                        title: t,
                        icon: "none"
                    }), new Error(t);
                }
                return e.taokerPidId;
            }).then(function(t) {
                I["A"].getTKLByELM({
                    pidId: t,
                    type: e
                }).then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if ("0" === e.code) {
                        Object(f["hideLoading"])();
                        var t = {
                            appId: P["e"].ELE,
                            path: e.miniPath
                        };
                        Object(f["navigateToMiniProgram"])(t);
                    } else {
                        var a = "TBAPIAction.getTKLByELM: ".concat(e.msg);
                        Object(f["showToast"])({
                            title: a,
                            icon: "none"
                        });
                    }
                });
            });
        }), W = function() {
            var e = Object(r["b"])(), t = e.openLogin, a = Object(x["d"])(function(e) {
                return e.user;
            }), s = a.loginStatus;
            return Object(M["jsxs"])(p["View"], {
                className: "more-coupon",
                children: [ Object(M["jsx"])(p["View"], {
                    className: "header",
                    children: "更多红包"
                }), Object(M["jsx"])(p["View"], {
                    className: "content",
                    children: s ? Object(M["jsxs"])(p["View"], {
                        className: "item fruit",
                        onClick: function() {
                            return _(1);
                        },
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "left",
                            src: "http://cdn.meizhuan.cn/pic-go/header-fruit-210603.png"
                        }), Object(M["jsxs"])(p["View"], {
                            className: "center",
                            children: [ Object(M["jsx"])(p["Image"], {
                                className: "logo",
                                src: "http://cdn.meizhuan.cn/pic-go/logo-fruit-210603.png"
                            }), Object(M["jsxs"])(p["View"], {
                                className: "word",
                                children: [ Object(M["jsx"])(p["View"], {
                                    className: "title",
                                    children: "果蔬红包"
                                }), Object(M["jsx"])(p["View"], {
                                    className: "slogen",
                                    children: "最高36元天天领"
                                }) ]
                            }) ]
                        }), Object(M["jsx"])(p["View"], {
                            className: "right",
                            children: Object(M["jsx"])(p["View"], {
                                className: "go-get",
                                children: "前往领取"
                            })
                        }) ]
                    }) : Object(M["jsxs"])(p["View"], {
                        className: "item fruit",
                        onClick: t,
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "left",
                            src: "http://cdn.meizhuan.cn/pic-go/header-fruit-210603.png"
                        }), Object(M["jsxs"])(p["View"], {
                            className: "center",
                            children: [ Object(M["jsx"])(p["Image"], {
                                className: "logo",
                                src: "http://cdn.meizhuan.cn/pic-go/logo-fruit-210603.png"
                            }), Object(M["jsxs"])(p["View"], {
                                className: "word",
                                children: [ Object(M["jsx"])(p["View"], {
                                    className: "title",
                                    children: "果蔬红包"
                                }), Object(M["jsx"])(p["View"], {
                                    className: "slogen",
                                    children: "最高36元天天领"
                                }) ]
                            }) ]
                        }), Object(M["jsx"])(p["View"], {
                            className: "right",
                            children: Object(M["jsx"])(p["View"], {
                                className: "go-get",
                                children: "前往领取"
                            })
                        }) ]
                    })
                }) ]
            });
        }, Q = (a(463), function() {
            var e = Object(r["b"])(), t = e.openLogin, a = Object(x["d"])(function(e) {
                return e.user;
            }), s = a.loginStatus, n = Object(x["d"])(function(e) {
                return e.weapp.mp;
            }), c = n.eleRedReward, i = n.eleRedRewardKl, o = Object(O["useCallback"])(function() {
                Object(f["showLoading"])({
                    title: "加载中",
                    mask: !0
                }), I["O"].getMiniServiceDomain().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (e.serviceDomain) {
                        Object(f["hideLoading"])();
                        var t = "https://".concat(e.serviceDomain, "/am/ele-copy-landing.jsp?").concat(g["qs"].stringify({
                            eleRedRewardKl: i
                        })), a = {
                            src: t,
                            frontColor: "#000000",
                            backgroundColor: "#ffffff"
                        }, s = "/pages/webview/index?".concat(g["qs"].stringify(a));
                        Object(f["navigateTo"])({
                            url: s
                        });
                    } else Object(f["showToast"])({
                        title: e.msg,
                        icon: "none"
                    });
                });
            }, [ i ]);
            return Object(M["jsxs"])(p["View"], {
                className: "reward-coupon",
                children: [ i ? Object(M["jsxs"])(p["View"], {
                    className: "item reward",
                    onClick: o,
                    children: [ Object(M["jsx"])(p["View"], {
                        className: "header",
                        children: "外卖红包②"
                    }), Object(M["jsxs"])(p["View"], {
                        className: "title",
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/hongbao-20211022.png"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "label",
                            children: "赏金红包"
                        }) ]
                    }), Object(M["jsxs"])(p["View"], {
                        className: "brief",
                        children: [ Object(M["jsx"])(p["Text"], {
                            className: "gray",
                            children: "最高"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "number",
                            children: "20"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(M["jsx"])(p["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }) : Object(M["jsxs"])(p["Navigator"], {
                    className: "item reward",
                    path: c,
                    appId: P["e"].ELE,
                    target: "miniProgram",
                    children: [ Object(M["jsx"])(p["View"], {
                        className: "header",
                        children: "外卖红包②"
                    }), Object(M["jsxs"])(p["View"], {
                        className: "title",
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/hongbao-20211022.png"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "label",
                            children: "赏金红包"
                        }) ]
                    }), Object(M["jsxs"])(p["View"], {
                        className: "brief",
                        children: [ Object(M["jsx"])(p["Text"], {
                            className: "gray",
                            children: "最高"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "number",
                            children: "20"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(M["jsx"])(p["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }), Object(M["jsxs"])(p["View"], {
                    className: "item lucky",
                    onClick: s ? function() {
                        return _(3);
                    } : t,
                    children: [ Object(M["jsx"])(p["View"], {
                        className: "header",
                        children: "外卖红包③"
                    }), Object(M["jsxs"])(p["View"], {
                        className: "title",
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/xingyun-20211022.png"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "label",
                            children: "幸运红包"
                        }) ]
                    }), Object(M["jsxs"])(p["View"], {
                        className: "brief",
                        children: [ Object(M["jsx"])(p["Text"], {
                            className: "gray",
                            children: "最高"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "number",
                            children: "20"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(M["jsx"])(p["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }), Object(M["jsxs"])(p["View"], {
                    className: "item fruit",
                    onClick: s ? function() {
                        return _(1);
                    } : t,
                    children: [ Object(M["jsx"])(p["View"], {
                        className: "header",
                        children: "1小时送达"
                    }), Object(M["jsxs"])(p["View"], {
                        className: "title",
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/guoshu-20211022.png"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "label",
                            children: "果蔬红包"
                        }) ]
                    }), Object(M["jsxs"])(p["View"], {
                        className: "brief",
                        children: [ Object(M["jsx"])(p["Text"], {
                            className: "gray",
                            children: "最高"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "number",
                            children: "36"
                        }), Object(M["jsx"])(p["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(M["jsx"])(p["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }) ]
            });
        }), $ = a(10), J = (a(464), function() {
            var e = Object(r["b"])(), t = e.openLogin, a = Object(x["d"])(function(e) {
                return e.user;
            }), s = a.loginStatus, n = Object(O["useState"])(!1), c = Object($["a"])(n, 2), i = c[0], o = c[1], l = Object(O["useState"])(!1), h = Object($["a"])(l, 2), u = h[0], m = h[1];
            return Object(O["useEffect"])(function() {
                I["G"].getConfig().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if ("0" === e.code) o(e.showElmFruit), m(e.showElmTmall); else {
                        var t = "AgentAction.getConfig: ".concat(e.msg);
                        Object(f["showToast"])({
                            title: t,
                            icon: "none"
                        });
                    }
                });
            }, []), i || u ? Object(M["jsxs"])(p["View"], {
                className: "tmall-and-fruit",
                children: [ Object(M["jsxs"])(p["View"], {
                    className: "header",
                    children: [ Object(M["jsxs"])(p["View"], {
                        className: "icons",
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "icon",
                            src: "http://cdn.meizhuan.cn/pic-go/icon-gray-20211213.png"
                        }), Object(M["jsx"])(p["Image"], {
                            className: "icon",
                            src: "http://cdn.meizhuan.cn/pic-go/icon-white-20211213.png"
                        }) ]
                    }), Object(M["jsx"])(p["Text"], {
                        className: "label",
                        children: "更多优惠满减"
                    }), Object(M["jsxs"])(p["View"], {
                        className: "icons",
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "icon",
                            src: "http://cdn.meizhuan.cn/pic-go/icon-white-20211213.png"
                        }), Object(M["jsx"])(p["Image"], {
                            className: "icon",
                            src: "http://cdn.meizhuan.cn/pic-go/icon-gray-20211213.png"
                        }) ]
                    }) ]
                }), Object(M["jsxs"])(p["View"], {
                    className: "list",
                    children: [ i ? Object(M["jsxs"])(p["View"], {
                        className: "item fruit",
                        hoverClass: "navigator-hover",
                        onClick: s ? function() {
                            return _(7);
                        } : t,
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "title",
                            src: "http://cdn.meizhuan.cn/pic-go/title-fruit-20211213.png"
                        }), Object(M["jsxs"])(p["View"], {
                            className: "content",
                            children: [ Object(M["jsx"])(p["Text"], {
                                className: "text",
                                children: "优选鲜果"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "number red",
                                children: "39"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "text red",
                                children: "减"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "number red",
                                children: "12"
                            }) ]
                        }), Object(M["jsx"])(p["Image"], {
                            className: "btn",
                            src: "http://cdn.meizhuan.cn/pic-go/btn-fruit-20211213.png",
                            children: Object(M["jsx"])(p["View"], {
                                className: "hover",
                                children: "点击进入"
                            })
                        }), Object(M["jsx"])(p["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/logo-fruit-20211213.png"
                        }) ]
                    }) : null, u ? Object(M["jsxs"])(p["View"], {
                        className: "item tmall",
                        hoverClass: "navigator-hover",
                        onClick: s ? function() {
                            return _(6);
                        } : t,
                        children: [ Object(M["jsx"])(p["Image"], {
                            className: "title",
                            src: "http://cdn.meizhuan.cn/pic-go/title-tmall-20211213.png"
                        }), Object(M["jsxs"])(p["View"], {
                            className: "content",
                            children: [ Object(M["jsx"])(p["Text"], {
                                className: "text",
                                children: "爆品低至"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "number red",
                                children: "0.99"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "text",
                                children: "元"
                            }) ]
                        }), Object(M["jsx"])(p["Image"], {
                            className: "btn",
                            src: "http://cdn.meizhuan.cn/pic-go/btn-20211213.png",
                            children: Object(M["jsx"])(p["View"], {
                                className: "hover",
                                children: "点击进入"
                            })
                        }), Object(M["jsx"])(p["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/logo-tmall-20211213.png"
                        }) ]
                    }) : null ]
                }) ]
            }) : null;
        }), X = function(e) {
            var t = e.qrcodeUrl, a = e.onShare, s = e.onToggle, n = e.onHongbao, c = e.onExtraHongbao, r = Object(x["d"])(function(e) {
                return e.share;
            }), i = r.agentId, o = Object(x["d"])(function(e) {
                return e.weapp.mp;
            }), l = o.eleRedReward, h = Object(x["d"])(function(e) {
                return e.user;
            }), u = h.isMpUser, m = h.approved, j = Object(x["d"])(function(e) {
                return e.user.agent;
            }), b = j.selfOrderConfirmNum;
            return Object(M["jsxs"])(p["View"], {
                className: "ele-waimai",
                children: [ u || b || m || i ? Object(M["jsx"])(C["a"], {
                    home: !0,
                    color: "#ffffff",
                    iconTheme: "white",
                    background: "#1280d9",
                    onHome: L["a"].openHome,
                    renderCenter: Object(M["jsxs"])(p["View"], {
                        className: "nav-bar-tabs",
                        children: [ Object(M["jsx"])(p["View"], {
                            className: "item active",
                            children: Object(M["jsx"])(p["Text"], {
                                className: "title",
                                children: "外卖"
                            })
                        }), Object(M["jsx"])(p["View"], {
                            className: "item",
                            onClick: function() {
                                return s("guoshu");
                            },
                            children: Object(M["jsx"])(p["Text"], {
                                className: "title",
                                children: "果蔬"
                            })
                        }) ]
                    })
                }) : Object(M["jsx"])(C["a"], {
                    home: !0,
                    color: "#ffffff",
                    iconTheme: "white",
                    background: "#1280d9",
                    onHome: L["a"].openHome
                }), u || b || m || i ? Object(M["jsx"])(p["View"], {
                    className: "wm-banner",
                    children: Object(M["jsx"])(p["Image"], {
                        mode: "widthFix",
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/ele-fanli-0-20210827.jpg"
                    })
                }) : null, Object(M["jsxs"])(p["View"], {
                    className: "wm-coupon",
                    children: [ Object(M["jsxs"])(p["View"], {
                        className: "header",
                        children: [ Object(M["jsxs"])(p["View"], {
                            className: "step",
                            children: [ Object(M["jsx"])(p["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/lhb-eleme-210302.png"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "span",
                                children: "领红包"
                            }) ]
                        }), Object(M["jsx"])(p["Image"], {
                            mode: "widthFix",
                            className: "link",
                            src: "https://mpstatic.qingting123.com/img/waimai/10.png"
                        }), Object(M["jsxs"])(p["View"], {
                            className: "step",
                            children: [ Object(M["jsx"])(p["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/zxd-eleme-210602.png"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "span",
                                children: "再下单"
                            }) ]
                        }), Object(M["jsx"])(p["Image"], {
                            mode: "widthFix",
                            className: "link",
                            src: "https://mpstatic.qingting123.com/img/waimai/10.png"
                        }), Object(M["jsxs"])(p["View"], {
                            className: "step",
                            children: [ Object(M["jsx"])(p["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/save-eleme-takeout-210607.png"
                            }), Object(M["jsx"])(p["Text"], {
                                className: "span",
                                children: "享优惠"
                            }) ]
                        }) ]
                    }), Object(M["jsxs"])(p["View"], {
                        className: "content",
                        children: [ Object(M["jsx"])(p["Image"], {
                            mode: "widthFix",
                            className: "qrcode",
                            showMenuByLongpress: !0,
                            src: t || "https://mpstatic.qingting123.com/img/loading-max.gif"
                        }), u || b || m || i ? Object(M["jsxs"])(p["View"], {
                            className: "btn-wrapper",
                            children: [ Object(M["jsx"])(p["View"], {
                                className: "btn",
                                onClick: function() {
                                    return n();
                                },
                                children: "领红包点外卖"
                            }), l ? null : Object(M["jsx"])(p["View"], {
                                className: "border btn",
                                onClick: c,
                                children: "领外卖红包②"
                            }) ]
                        }) : null, Object(M["jsxs"])(p["View"], {
                            className: "share",
                            children: [ Object(M["jsxs"])(p["View"], {
                                className: "share__wrapper",
                                onClick: a,
                                children: [ Object(M["jsx"])(p["Text"], {
                                    className: "icon-font iconfont-circle-share"
                                }), Object(M["jsx"])(p["Text"], {
                                    className: "share__wrapper-label",
                                    children: "分享好友"
                                }) ]
                            }), Object(M["jsxs"])(p["Navigator"], {
                                className: "share__wrapper",
                                appId: P["e"].ELE,
                                openType: "navigate",
                                target: "miniProgram",
                                path: "pages/orderlist/pages/index/index",
                                children: [ Object(M["jsx"])(p["Text"], {
                                    className: "icon-font iconfont-weapp-order"
                                }), Object(M["jsx"])(p["Text"], {
                                    className: "share__wrapper-label",
                                    children: "查看订单"
                                }) ]
                            }) ]
                        }) ]
                    }) ]
                }), l ? Object(M["jsx"])(Q, {}) : Object(M["jsx"])(W, {}), Object(M["jsx"])(J, {}), Object(M["jsx"])(G, {}) ]
            });
        }, Y = function(e) {
            var t = e.user, a = e.switchTab;
            return {
                user: t,
                switchTab: a
            };
        }, Z = function(e) {
            return {
                onDeleteSwitchTabRouter: function(t) {
                    e(Object(V["a"])(t));
                }
            };
        }, ee = (F = Object(x["b"])(Y, Z), F(B = function(e) {
            Object(j["a"])(a, e);
            var t = Object(b["a"])(a);
            function a(e) {
                var s;
                return Object(h["a"])(this, a), s = t.call(this, e), Object(d["a"])(Object(m["a"])(s), "getCustomParams", function() {
                    var e = s.props.switchTab.routers;
                    if (!e.length) return {};
                    var t = s.$instance.router.path, a = e.find(function(e) {
                        return e.path === t;
                    });
                    return a ? (s.props.onDeleteSwitchTabRouter(t), a.params) : {};
                }), Object(d["a"])(Object(m["a"])(s), "resolveParams", function() {
                    var e = s.getCustomParams(), t = s.$instance.router.params;
                    s.referer = e.referer || t.referer || "";
                    var a = e.tabKey || t.tabKey || "", n = s.state.tabNavs.map(function(e) {
                        return e.key;
                    }), c = n.includes(a);
                    if (c) return s.toggleTabNav(a), !1;
                    s.getQrCodeUrl();
                }), Object(d["a"])(Object(m["a"])(s), "getQrCodeUrl", Object(l["a"])(o.a.mark(function e() {
                    var t, a, n, c, r, i;
                    return o.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            if (s.props.user.loginStatus) {
                                e.next = 3;
                                break;
                            }
                            return s.openLogin(), e.abrupt("return", !1);

                          case 3:
                            if (t = s.getActiveNav(), a = s.state.qrcodeUrl, 0 !== t.type || !a.waimai) {
                                e.next = 7;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 7:
                            if (1 !== t.type || !a.guoshu) {
                                e.next = 9;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 9:
                            return e.next = 11, I["G"].fetchMpDefaultPid();

                          case 11:
                            if (n = e.sent, c = n.data, 0 == c.code) {
                                e.next = 16;
                                break;
                            }
                            return w.a.showToast({
                                title: c.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 16:
                            return r = c.taokerPidId, e.next = 19, I["A"].getTKLByELM({
                                pidId: r,
                                type: t.type
                            }).then(function(e) {
                                return e.data;
                            });

                          case 19:
                            if (i = e.sent, 0 == i.code) {
                                e.next = 23;
                                break;
                            }
                            return w.a.showToast({
                                title: i.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 23:
                            if (0 !== t.type) {
                                e.next = 27;
                                break;
                            }
                            return a.waimai = i.qrcodeUrl, s.setState({
                                qrcodeUrl: a
                            }), e.abrupt("return", !1);

                          case 27:
                            if (1 !== t.type) {
                                e.next = 31;
                                break;
                            }
                            return a.guoshu = i.qrcodeUrl, s.setState({
                                qrcodeUrl: a
                            }), e.abrupt("return", !1);

                          case 31:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(d["a"])(Object(m["a"])(s), "toggleTabNav", function(e) {
                    var t = s.customShare[e].flag;
                    !t && s.getMpShare(e);
                    var a = s.state.tabNavs.map(function(t) {
                        return t.active = t.key === e, t;
                    }), n = {
                        tabNavs: a,
                        showShareDialog: !1
                    };
                    s.setState(n, s.getQrCodeUrl);
                }), Object(d["a"])(Object(m["a"])(s), "showEleSharePoster", Object(l["a"])(o.a.mark(function e() {
                    var t, a, n, c, r, i, l, h, u, m, j, b, d;
                    return o.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            if (t = s.props.user, t.loginStatus) {
                                e.next = 4;
                                break;
                            }
                            return s.openLogin(), e.abrupt("return", !1);

                          case 4:
                            if (a = s.state.sharePosterUrl, n = s.getActiveNav(), 0 !== n.type || !a.waimai) {
                                e.next = 9;
                                break;
                            }
                            return s.setState({
                                showShareDialog: !0
                            }), e.abrupt("return", !1);

                          case 9:
                            if (1 !== n.type || !a.guoshu) {
                                e.next = 12;
                                break;
                            }
                            return s.setState({
                                showShareDialog: !0
                            }), e.abrupt("return", !1);

                          case 12:
                            if (w.a.showLoading({
                                title: "正在加载",
                                mask: !0
                            }), s.elePidId) {
                                e.next = 24;
                                break;
                            }
                            return c = {
                                goodsTbId: 1
                            }, e.next = 17, I["G"].fetchWithMp(c).then(function(e) {
                                return e.data;
                            });

                          case 17:
                            if (r = e.sent, 0 == r.code) {
                                e.next = 23;
                                break;
                            }
                            return w.a.hideLoading(), i = r.msg || "未获取到渠道ID，请联系管理员", w.a.showToast({
                                title: i,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 23:
                            s.elePidId = r.taokerPidId;

                          case 24:
                            return e.next = 26, I["A"].getTKLByELM({
                                pidId: s.elePidId,
                                type: n.type
                            }).then(function(e) {
                                return e.data;
                            });

                          case 26:
                            if (l = e.sent, 0 == l.code) {
                                e.next = 31;
                                break;
                            }
                            return w.a.hideLoading(), w.a.showToast({
                                title: l.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 31:
                            if (h = s.state.qrcodeUrl, 0 === n.type ? (h.waimai = l.qrcodeUrl, s.elePagePath.waimai = l.miniPath, 
                            s.elePromotionUrl.waimai = l.shortClickUrl, s.setState({
                                qrcodeUrl: h
                            })) : 1 === n.type && (h.guoshu = l.qrcodeUrl, s.elePagePath.guoshu = l.miniPath, 
                            s.elePromotionUrl.guoshu = l.shortClickUrl, s.setState({
                                qrcodeUrl: h
                            })), 0 !== n.type) {
                                e.next = 40;
                                break;
                            }
                            return m = {
                                qrcodeUrl: l.qrcodeUrl
                            }, e.next = 37, I["G"].fetchELMSharePoster(m);

                          case 37:
                            u = e.sent, e.next = 45;
                            break;

                          case 40:
                            if (1 !== n.type) {
                                e.next = 45;
                                break;
                            }
                            return j = {
                                qrcodeUrl: l.qrcodeUrl
                            }, e.next = 44, I["G"].fetchELMGSSharePoster(j);

                          case 44:
                            u = e.sent;

                          case 45:
                            if (w.a.hideLoading(), b = u.data, 0 == b.code) {
                                e.next = 50;
                                break;
                            }
                            return w.a.showToast({
                                title: b.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 50:
                            d = Object(k["b"])(), 0 === n.type ? a.waimai = "".concat(P["b"].MP, "/ELMSharePoster/").concat(b.content, ".jpg?t=").concat(d) : 1 === n.type && (a.guoshu = "".concat(P["b"].MP, "/ELMGSSharePoster/").concat(b.content, ".jpg?t=").concat(d)), 
                            s.setState({
                                sharePosterUrl: a,
                                showShareDialog: !0
                            });

                          case 53:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(d["a"])(Object(m["a"])(s), "getActiveNav", function() {
                    var e = s.state.tabNavs, t = e.find(function(e) {
                        return e.active;
                    });
                    return t;
                }), Object(d["a"])(Object(m["a"])(s), "copyText", function() {
                    var e = {
                        data: "餐前福利！外卖红包天天领，最高可得66元！"
                    }, t = function() {};
                    w.a.setClipboardData(e).then(t).catch(t);
                }), Object(d["a"])(Object(m["a"])(s), "closeShareDialog", function() {
                    s.setState({
                        showShareDialog: !1
                    });
                }), Object(d["a"])(Object(m["a"])(s), "getHongbao", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t) {
                        var a, n, c, r, i, l, h;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                if (s.props.user.loginStatus) {
                                    e.next = 3;
                                    break;
                                }
                                return s.openLogin(), e.abrupt("return", !1);

                              case 3:
                                if (void 0 === t && (t = s.getActiveNav().type), a = s.state.qrcodeUrl, 0 !== t) {
                                    e.next = 10;
                                    break;
                                }
                                if (n = s.elePagePath.waimai, !n) {
                                    e.next = 10;
                                    break;
                                }
                                return s.navigateToEleMiniProgram(n), e.abrupt("return", !1);

                              case 10:
                                if (1 !== t) {
                                    e.next = 15;
                                    break;
                                }
                                if (c = s.elePagePath.guoshu, !c) {
                                    e.next = 15;
                                    break;
                                }
                                return s.navigateToEleMiniProgram(c), e.abrupt("return", !1);

                              case 15:
                                if (w.a.showLoading({
                                    title: "正在加载",
                                    mask: !0
                                }), s.elePidId) {
                                    e.next = 27;
                                    break;
                                }
                                return r = {
                                    goodsTbId: 1
                                }, e.next = 20, I["G"].fetchWithMp(r).then(function(e) {
                                    return e.data;
                                });

                              case 20:
                                if (i = e.sent, 0 == i.code) {
                                    e.next = 26;
                                    break;
                                }
                                return w.a.hideLoading(), l = i.msg || "未获取到渠道ID，请联系管理员", w.a.showToast({
                                    title: l,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 26:
                                s.elePidId = i.taokerPidId;

                              case 27:
                                return e.next = 29, I["A"].getTKLByELM({
                                    pidId: s.elePidId,
                                    type: t
                                }).then(function(e) {
                                    return e.data;
                                });

                              case 29:
                                if (h = e.sent, w.a.hideLoading(), 0 == h.code) {
                                    e.next = 34;
                                    break;
                                }
                                return w.a.showToast({
                                    title: h.msg,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 34:
                                if (s.navigateToEleMiniProgram(h.miniPath), 0 !== t) {
                                    e.next = 41;
                                    break;
                                }
                                return a.waimai = h.qrcodeUrl, s.elePagePath.waimai = h.miniPath, s.elePromotionUrl.waimai = h.shortClickUrl, 
                                s.setState({
                                    qrcodeUrl: a
                                }), e.abrupt("return", !1);

                              case 41:
                                if (1 !== t) {
                                    e.next = 47;
                                    break;
                                }
                                return a.guoshu = h.qrcodeUrl, s.elePagePath.guoshu = h.miniPath, s.elePromotionUrl.guoshu = h.shortClickUrl, 
                                s.setState({
                                    qrcodeUrl: a
                                }), e.abrupt("return", !1);

                              case 47:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }));
                    return function(t) {
                        return e.apply(this, arguments);
                    };
                }()), Object(d["a"])(Object(m["a"])(s), "navigateToEleMiniProgram", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t) {
                        var a;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                return a = {
                                    appId: P["e"].ELE,
                                    path: t
                                }, e.prev = 1, e.next = 4, w.a.navigateToMiniProgram(a);

                              case 4:
                                e.next = 9;
                                break;

                              case 6:
                                return e.prev = 6, e.t0 = e["catch"](1), e.abrupt("return", !1);

                              case 9:
                                if ("clock" === s.referer) {
                                    e.next = 11;
                                    break;
                                }
                                return e.abrupt("return", !1);

                              case 11:
                                I["H"].clockIn(), s.referer = "";

                              case 13:
                              case "end":
                                return e.stop();
                            }
                        }, e, null, [ [ 1, 6 ] ]);
                    }));
                    return function(t) {
                        return e.apply(this, arguments);
                    };
                }()), Object(d["a"])(Object(m["a"])(s), "tapPosterBtn", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t) {
                        var a, n, c, r, i, l, h, u, m, j;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                if ("close" !== t.label) {
                                    e.next = 3;
                                    break;
                                }
                                return s.closeShareDialog(), e.abrupt("return", !1);

                              case 3:
                                if ("copyLink" !== t.label) {
                                    e.next = 51;
                                    break;
                                }
                                if (a = s.getActiveNav(), n = function() {}, 0 !== a.type) {
                                    e.next = 11;
                                    break;
                                }
                                if (!s.elePromotionUrl.waimai) {
                                    e.next = 11;
                                    break;
                                }
                                return c = s.elePromotionUrl.waimai, w.a.setClipboardData({
                                    data: c
                                }).then(n).catch(n), e.abrupt("return", !1);

                              case 11:
                                if (1 !== a.type) {
                                    e.next = 16;
                                    break;
                                }
                                if (!s.elePromotionUrl.guoshu) {
                                    e.next = 16;
                                    break;
                                }
                                return r = s.elePromotionUrl.guoshu, w.a.setClipboardData({
                                    data: r
                                }).then(n).catch(n), e.abrupt("return", !1);

                              case 16:
                                if (w.a.showLoading({
                                    title: "正在加载",
                                    mask: !0
                                }), s.elePidId) {
                                    e.next = 28;
                                    break;
                                }
                                return i = {
                                    goodsTbId: 1
                                }, e.next = 21, I["G"].fetchWithMp(i).then(function(e) {
                                    return e.data;
                                });

                              case 21:
                                if (l = e.sent, 0 == l.code) {
                                    e.next = 27;
                                    break;
                                }
                                return w.a.hideLoading(), h = l.msg || "未获取到渠道ID，请联系管理员", w.a.showToast({
                                    title: h,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 27:
                                s.elePidId = l.taokerPidId;

                              case 28:
                                return e.next = 30, I["A"].getTKLByELM({
                                    pidId: s.elePidId,
                                    type: a.type
                                }).then(function(e) {
                                    return e.data;
                                });

                              case 30:
                                if (u = e.sent, w.a.hideLoading(), 0 == u.code) {
                                    e.next = 35;
                                    break;
                                }
                                return w.a.showToast({
                                    title: u.msg,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 35:
                                if (m = u.shortClickUrl, w.a.setClipboardData({
                                    data: m
                                }).then(n).catch(n), j = s.state.qrcodeUrl, 0 !== a.type) {
                                    e.next = 44;
                                    break;
                                }
                                return j.waimai = u.qrcodeUrl, s.elePagePath.waimai = u.miniPath, s.elePromotionUrl.waimai = u.shortClickUrl, 
                                s.setState({
                                    qrcodeUrl: j
                                }), e.abrupt("return", !1);

                              case 44:
                                if (1 !== a.type) {
                                    e.next = 50;
                                    break;
                                }
                                return j.guoshu = u.qrcodeUrl, s.elePagePath.guoshu = u.miniPath, s.elePromotionUrl.guoshu = u.shortClickUrl, 
                                s.setState({
                                    qrcodeUrl: j
                                }), e.abrupt("return", !1);

                              case 50:
                                return e.abrupt("return", !1);

                              case 51:
                                if ("copyText" !== t.label) {
                                    e.next = 54;
                                    break;
                                }
                                return s.copyText(), e.abrupt("return", !1);

                              case 54:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }));
                    return function(t) {
                        return e.apply(this, arguments);
                    };
                }()), Object(d["a"])(Object(m["a"])(s), "openLogin", function() {
                    s.setState({
                        showLogin: !0
                    });
                }), Object(d["a"])(Object(m["a"])(s), "closeLogin", function() {
                    s.setState({
                        showLogin: !1
                    });
                }), Object(d["a"])(Object(m["a"])(s), "getExtraHongbao", Object(l["a"])(o.a.mark(function e() {
                    var t, a, n, c;
                    return o.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            if (s.props.user.loginStatus) {
                                e.next = 3;
                                break;
                            }
                            return s.openLogin(), e.abrupt("return", !1);

                          case 3:
                            if (w.a.showLoading({
                                title: "正在加载",
                                mask: !0
                            }), s.elePidId) {
                                e.next = 15;
                                break;
                            }
                            return t = {
                                goodsTbId: 1
                            }, e.next = 8, I["G"].fetchWithMp(t).then(function(e) {
                                return e.data;
                            });

                          case 8:
                            if (a = e.sent, 0 == a.code) {
                                e.next = 14;
                                break;
                            }
                            return w.a.hideLoading(), n = a.msg || "未获取到渠道ID，请联系管理员", w.a.showToast({
                                title: n,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 14:
                            s.elePidId = a.taokerPidId;

                          case 15:
                            return e.next = 17, I["A"].getTKLByELM({
                                pidId: s.elePidId,
                                type: 3
                            }).then(function(e) {
                                return e.data;
                            });

                          case 17:
                            if (c = e.sent, w.a.hideLoading(), 0 == c.code) {
                                e.next = 22;
                                break;
                            }
                            return w.a.showToast({
                                title: c.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 22:
                            s.navigateToEleMiniProgram(c.miniPath);

                          case 23:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(d["a"])(Object(m["a"])(s), "getMpShare", function(e) {
                    var t = e && s.state.tabNavs.filter(function(t) {
                        return t.key === e;
                    }), a = t.length && t[0].shareType || s.state.tabNavs[0].shareType;
                    I["P"].fetchByMp({
                        shareType: a
                    }).then(function(e) {
                        return e.data;
                    }).then(function(t) {
                        if (0 != t.code) return !1;
                        s.customShare[e].flag = !0, s.customShare[e].imageHref = t.share && t.share.imageHref || "", 
                        s.customShare[e].shareTitle = t.share && t.share.shareTitle || "";
                    });
                }), s.$instance = Object(f["getCurrentInstance"])(), s.state = {
                    showLogin: !1,
                    showBind: !1,
                    tabNavs: [ {
                        key: "waimai",
                        type: 0,
                        active: !0,
                        shareType: 6
                    }, {
                        key: "guoshu",
                        type: 1,
                        active: !1,
                        shareType: 7
                    } ],
                    qrcodeUrl: {
                        waimai: "",
                        guoshu: ""
                    },
                    sharePosterUrl: {
                        waimai: "",
                        guoshu: ""
                    },
                    showShareDialog: !1
                }, s.elePidId = "", s.elePagePath = {
                    waimai: "",
                    guoshu: ""
                }, s.elePromotionUrl = {
                    waimai: "",
                    guoshu: ""
                }, s.referer = "", s.customShare = {
                    waimai: {
                        flag: !1,
                        imageHref: "",
                        shareTitle: ""
                    },
                    guoshu: {
                        flag: !1,
                        imageHref: "",
                        shareTitle: ""
                    }
                }, s;
            }
            return Object(u["a"])(a, [ {
                key: "componentDidMount",
                value: function() {
                    if (this.props.user.loginStatus) return this.resolveParams(), !1;
                    var e = P["d"].SILENT_LOGIN_FAILED, t = w.a.getStorageSync(e);
                    if (t) return this.resolveParams(), !1;
                    w.a.eventCenter.on("silentLoginFailed", this.resolveParams);
                }
            }, {
                key: "shouldComponentUpdate",
                value: function(e) {
                    var t = this.props.user, a = e.user;
                    return !t.loginStatus && a.loginStatus && setTimeout(this.getQrCodeUrl, 100), !0;
                }
            }, {
                key: "componentDidShow",
                value: function() {
                    var e = this.getCustomParams(), t = e.tabKey || "", a = this.state.tabNavs.map(function(e) {
                        return e.key;
                    }), s = a.includes(t);
                    s && this.toggleTabNav(t);
                }
            }, {
                key: "onShareAppMessage",
                value: function() {
                    var e = this.getActiveNav(), t = {
                        tabKey: e.key,
                        agentId: this.props.user.agent.agentId || ""
                    }, a = "pages/main/ele/index?".concat(g["qs"].stringify(t));
                    if (console.log("path:", a), "waimai" === e.key && this.customShare.waimai.imageHref && this.customShare.waimai.shareTitle) {
                        var s = this.customShare.waimai.shareTitle, n = this.customShare.waimai.imageHref;
                        return {
                            title: s,
                            path: a,
                            imageUrl: n
                        };
                    }
                    if ("guoshu" === e.key && this.customShare.guoshu.imageHref && this.customShare.guoshu.shareTitle) {
                        var c = this.customShare.guoshu.shareTitle, r = this.customShare.guoshu.imageHref;
                        return {
                            title: c,
                            path: a,
                            imageUrl: r
                        };
                    }
                    var i = this.props.user.currentWeappMp, o = i.miniServiceType, l = i.nickName;
                    if (1 === o) {
                        var h = "购物先领券，省下一套房！";
                        return {
                            title: h,
                            path: a,
                            imageUrl: ""
                        };
                    }
                    if ([ 4, 5, 6 ].includes(o)) {
                        var u = "", m = "";
                        if ("waimai" === e.key) {
                            u = "今日外卖大红包已更新，立即领取↓";
                            var j = this.props.user.currentWeappMp.eleRedReward;
                            m = j ? "http://cdn.meizhuan.cn/pic-go/ele-20211123.jpg" : "http://cdn.meizhuan.cn/pic-go/share-elmwm-210815.jpg";
                        }
                        return "guoshu" === e.key && (u = "领红包买果蔬，1小时送达~", m = "http://cdn.meizhuan.cn/pic-go/share-elmgs-210815.jpg"), 
                        {
                            title: u,
                            path: a,
                            imageUrl: m
                        };
                    }
                    return {
                        title: l,
                        path: a,
                        imageUrl: ""
                    };
                }
            }, {
                key: "render",
                value: function() {
                    var e = this.state, t = e.showBind, a = e.qrcodeUrl, s = e.showLogin, n = e.sharePosterUrl, c = e.showShareDialog, r = e.showContactDialog, i = this.getActiveNav();
                    return Object(M["jsxs"])(p["View"], {
                        children: [ "waimai" === i.key && Object(M["jsx"])(X, {
                            qrcodeUrl: a.waimai,
                            onHongbao: this.getHongbao,
                            onToggle: this.toggleTabNav,
                            onShare: this.showEleSharePoster,
                            onExtraHongbao: this.getExtraHongbao
                        }), "waimai" === i.key && Object(M["jsx"])(T["a"], {
                            show: c,
                            src: n.waimai,
                            onTapButton: this.tapPosterBtn,
                            buttons: [ {
                                label: "copyText",
                                text: "复制文案"
                            }, {
                                label: "close",
                                text: "关闭"
                            } ]
                        }), "guoshu" === i.key && Object(M["jsx"])(R, {
                            onCopy: this.copyText,
                            onHongbao: this.getHongbao,
                            onToggle: this.toggleTabNav,
                            qrcodeUrl: a.guoshu,
                            onShare: this.showEleSharePoster
                        }), "guoshu" === i.key && Object(M["jsx"])(T["a"], {
                            show: c,
                            src: n.guoshu,
                            onTapButton: this.tapPosterBtn,
                            buttons: [ {
                                label: "copyLink",
                                text: "复制链接"
                            }, {
                                label: "close",
                                text: "关闭"
                            } ]
                        }), Object(M["jsx"])(N["a"], {
                            enableClose: !0,
                            bind: t,
                            show: s,
                            onSuccess: this.getQrCodeUrl,
                            onCloseLogin: this.closeLogin
                        }), Object(M["jsx"])(v["a"], {
                            show: r,
                            onClose: this.closeContactDialog
                        }), Object(M["jsx"])(y["a"], {
                            activeKey: "ele"
                        }) ]
                    });
                }
            } ]), a;
        }(O["Component"])) || B), te = ee, ae = function() {
            return Object(M["jsx"])(r["a"], {
                children: Object(M["jsx"])(te, {})
            });
        }, se = ae, ne = {
            navigationStyle: "custom",
            enablePullDownRefresh: !1,
            enableShareAppMessage: !0,
            navigationBarTitleText: ""
        };
        se.enableShareAppMessage = !0;
        Page(Object(c["createPageConfig"])(se, "pages/main/ele/index", {
            root: {
                cn: []
            }
        }, ne || {}));
    }
}, [ [ 687, 0, 1, 2, 3 ] ] ]);